package org.jeecg.modules.cusstyle.service;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import org.jeecg.modules.cusstyle.entity.CusStyleAccessoryInfo;
import org.jeecg.modules.cusstyle.entity.CusStyleElectroplateInfo;
import org.jeecg.modules.cusstyle.entity.CusStyleInfo;
import org.jeecg.modules.cusstyle.entity.CusStyleOtherInfo;
import org.jeecg.modules.cusstyle.entity.CusStyleStoneInfo;
import org.jeecg.modules.cusstyle.entity.CusStyleSuitInfo;
import org.jeecg.modules.cusstyle.entity.CusStyleWorkingProcedure;

import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Description: 款式资料
 * @Author: jeecg-boot
 * @Date:   2021-09-13
 * @Version: V1.0
 */
public interface ICusStyleInfoService extends IService<CusStyleInfo> {

	/**
	 * 添加一对多
	 * 
	 */
	public boolean saveMain(CusStyleInfo styleInfo,List<CusStyleStoneInfo> styleStoneInfoList,List<CusStyleAccessoryInfo> styleAccessoryInfoList,List<CusStyleWorkingProcedure> styleWorkingProcedureList,List<CusStyleElectroplateInfo> styleElectroplateInfoList,List<CusStyleSuitInfo> styleSuitInfoList,List<CusStyleOtherInfo> styleOtherInfoList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(CusStyleInfo styleInfo,List<CusStyleStoneInfo> styleStoneInfoList,List<CusStyleAccessoryInfo> styleAccessoryInfoList,List<CusStyleWorkingProcedure> styleWorkingProcedureList,List<CusStyleElectroplateInfo> styleElectroplateInfoList,List<CusStyleSuitInfo> styleSuitInfoList,List<CusStyleOtherInfo> styleOtherInfoList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	/**
	 * 转生产单
	 * @param id
	 */
	public boolean convertProdOrder(String id);
	
	/**
	 * 开工单
	 * @param id
	 */
	public boolean openWorkOrder(String id);
	
	
	/**
	 * 根据订单号更新所订款式的状态
	 */
	public boolean updateStatusByOrderInfoId(String orderInfoId, Integer status);
	
	
}
